package com.sxm.yiwei.pinche.model_interface;



import com.sxm.yiwei.beans.pinche.HostOrder;
import com.sxm.yiwei.beans.pinche.Order;
import com.sxm.yiwei.pinche.view_interface.ISearchListView;

import java.util.ArrayList;

/**
 * Created by Administrator on 2017/10/17.
 */

public class SearchListImpl implements ISearchListModel {
    @Override
    public void search(String url, ISearchListView pincheView, Order order) {
        ArrayList<Order> list = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            HostOrder hostOrder = new HostOrder();
            hostOrder.setIcon("");
            hostOrder.setPhone("182***15145");
            hostOrder.setIs_online(0);
            hostOrder.setWords("本车只载美女");
            hostOrder.setStart_place("北京");
            hostOrder.setEnd_place("上海");
            hostOrder.setPrice(100);
            hostOrder.setSeats(5);
            hostOrder.setDepart_time("2017-14-30 14:00");
            hostOrder.setTime("2017-14-30 14:00");
            list.add(hostOrder);
        }
        pincheView.onSearchSuccess(list);
    }
}
